export default {
    type: 'form',
    title: '',
    mode: 'horizontal',
    actions: [],
    wrapWithPanel: false,
    initApi: '/upms/admin/user/get?id=${id}',
    body:[
    {
        type: 'group',
        body:[
            {
                type: 'static',
                name: 'username',
                label: '用户名',
            },
            {
                type: 'static',
                name: 'nickName',
                label: '昵称'
            },
        ]
    },   
    {
        type: 'group',
        body:[
            {
                type: 'static',
                name: 'typeStr',
                label: '用户类型',
            },
            {
                type: 'static',
                name: 'orgName',
                label: '所属机构',
            },
        ]
    },   
    {
        type: 'group',
        body:[
            {
                type: 'static',
                name: 'phone',
                label: '绑定手机号',
            },
            {
                type: 'static',
                name: 'statusStr',
                label: '状态',
            },
        ]
    },   
    {
        type: 'group',
        body:[
            {
                type: 'static',
                name: 'roleNames',
                label: '角色',
            },
            {
                type: 'static',
                name: '${IF(mainFlag,"是","否")}',
                label: '是否主账号'
            },
        ]
    },
    {
        type: 'group',
        body:[
            {
                type: 'static',
                name: 'gmtCreated',
                label: '注册时间',
            },
            {
                type: 'static',
                name: 'lastLoginDate',
                label: '最后登录时间',
            },
        ]
    },    
    {
        type: 'group',
        body:[
            {
                type: 'static',
                name: 'remark',
                label: '备注'
            }
        ]
    }, 
    {
        type: 'group',
        label: '头像',
        body:[{
            type: 'avatar',
            src: '${avatar || "../public/images/avatar-default.png"}'
        }]
    }
]
}
